import { request } from "@/utils/request";
import ApiResult from "@/api/base/ApiResult";

class marketingCenterApi {
  /**
  * @description: 分页查询
  */
  currencyPager(data: {currentPage: number; showCount: number; status: number;}):Promise<ApiResult<{id: number; name: string}[]>> {
    return request('/extensions/currency/manage/currencyPager', data)
  }

  /**
  * @description: 修改状态
  * @param {*}
  * @return {*}
  */
  updStatus(data: any) {
    let url = `/extensions/currency/manage/updStatus`
    return request(url, data)
  }


  /**
  * @description: 删除/批量删除代币
  * @param {*}
  * @return {*}
  */
  delCurrency(data: any) {
    let url = `/extensions/currency/manage/delCurrency`
    return request(url, data)
  }


  /**
  * @description: 新增/编辑代币信息
  * @param {*}
  * @return {*}
  */
  AddCurrency(data: any) {
    let url = `/extensions/currency/manage/editCurrency`
    return request(url, data)
  }


  /**
  * @description: 获取代币信息详情
  * @param {*}
  * @return {*}
  */
  getCurrencyInfoDetail(data: any) {
    let url = `/extensions/currency/manage/getCurrencyInfo`
    return request(url, data)
  }
  /**
 * @description: 批量导入积分
 * @param {*}
 * @return {*}
 */
  currencyImport(data: any) {
    let url = `/extensions/currency/manage/currencyImport`
    return request(url, data)
  }
  /**
 * @description: 批量导入积分结果
 * @param {*}
 * @return {*}
 */
  currencyImportRes(data: any) {
    let url = `/extensions/currency/manage/polingImport`
    return request(url, data)
  }

}
export default new marketingCenterApi()
